package com.wgy.designmode.action.chain.handle;

public class WarnLogger extends AbstractLogger{
    public WarnLogger() {
        super(AbstractLogger.WARN);
        setNextLogger(new ErrorLogger());
    }

    @Override
    protected void write(String message) {
        System.out.println("Warn记录日志： " + message);
    }
}
